home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / NetBSD / docs-netbsd / Mailinglist-Archive / 1994-08.gz / 1994-08 / 000026_owner-amiga@sun…s.berkeley.edu_Mon Aug 1 12:35:22 1994.msg < prev    next >
Text File  |  1994-10-16  |  18KB  |  536 lines

  1. From: William J Coldwell <billc@icecube.cryogenic.com>
  2. To: amiga@sun-lamp.cs.berkeley.edu
  3. Subject: INSTALL doc - prerelease.
  4. Sender: owner-amiga@sun-lamp.cs.berkeley.edu
  5.  
  6. Please proof for errors... send changes back to me in *E-MAIL*.
  7. Feel free to add to it.
  8.  
  9. -- SOF --
  10.  
  11. Installing NetBSD-Amiga (4.4BSD UNIX)
  12. August 1st, 1994
  13.  
  14. Abstract:
  15.  
  16. This document contains the very hastily written instructions for the  
  17. installation the NetBSD-Amiga 1.0 (4.4BSD release of UNIX) release.
  18.  
  19.  
  20.  
  21. NetBSD-Amiga Mailing List: majordomo@sun-lamp.cs.berkeley.edu
  22. EMail: billc@icecube.cryogenic.com
  23. CryoCafe BBS: 1-503-257-4823
  24. IRC: #NetBSD and #Amiga
  25.  
  26.  
  27. NetBSD-Amiga Release 1.0 will be available on a QIC-120/150 (DC6120/DC6150)  
  28. 1/4" tape from this address for US$30.
  29.  
  30. NetBSD-Amiga Port
  31. c/o William Coldwell
  32. P.O. Box 16924
  33. Portland, Oregon 97216-0924 USA
  34.  
  35.  
  36. SYSTEM REQUIREMENTS
  37. ~~~~~~~~~~~~~~~~~~~
  38.  
  39. Supported Standard Amigas:  A4000/040, A3000, A2500/030, A2500/020
  40.  
  41. Configuration Requirements:
  42.  
  43.     Machine:
  44.         Amiga
  45.  
  46.     CPU/FPU/MMU:    
  47.         M68020-CPU/MC68881*-FPU/M68851-MMU
  48.         M68030%-CPU-MMU/MC68881*-FPU
  49.         MC68040-CPU-MMU-FPU
  50.             * - MC68882-FPU is acceptable
  51.             % - M68EC030 is not acceptable
  52.  
  53.     Memory:    
  54.         4 Megabytes of contigious FAST RAM or more
  55.         1 Megabytes of CHIP RAM or more
  56.  
  57.     Disk:
  58.         100 Megabytes of free space or more
  59.     Tape:
  60.         Most SCSI tape controllers, including
  61.         Archive Viper,
  62.         Cipher SCSI-2 ST150.
  63.  
  64.     Disk controller:
  65.         A4000 IDE
  66.         A3000 SCSI
  67.         A2500 SCSI (A2091)
  68.         A4091 SCSI-2
  69.         Supra WordSync SCSI
  70.         GVP Series II SCSI
  71.         IVS SCSI
  72.         CSA Twelve Gauge SCSI
  73.         CSA Magnum SCSI
  74.         MacroSystem Development WarpEngine SCSI-2
  75.         
  76.     Supported External Filesystems:
  77.         AmigaDOS
  78.         ISO-9660 (CDROM)
  79.  
  80.     Video controller:
  81.         AGA-NTSC/PAL (15/31kHz)
  82.         ECS-NTSC/PAL (15kHz)
  83.         ECS-A2024-NTSC/PAL (15kHz/10Hz)
  84.         Noahji (MacroSystem US) Retina
  85.         
  86.     Network controller:
  87.         A2065 Ethernet
  88.         Hydra Ethernet        
  89.  
  90.     Input device:
  91.         2 button mouse
  92.         3 button mouse
  93.  
  94. Files:
  95. ~~~~~~
  96. release/bootfloppy.dms (REQUIRES DMS unarchiver)
  97. release/base.tar.gz    (required)
  98. release/etc.tar.gz    (required)
  99. release/netbsd.gz    (required)
  100. tools/loadbsd.gz    (required)
  101. release/comp.tar.gz    (recommended)
  102. release/games.tar.gz    (recommended)
  103. release/man.tar.gz    (recommended)
  104. release/misc.tar.gz    (recommended)
  105. release/text.tar.gz    (recommended)
  106.  
  107. FTP Sites:
  108. ~~~~~~~~~~
  109. ftp.uni-regensburg.de  pub/NetBSD-Amiga/release/*
  110.  
  111. Disk space:
  112. ~~~~~~~~~~~
  113.     15M for root (/) (or more)
  114.     2 * FAST RAM Megabytes for swap (i.e., 8M system == 16M swap)
  115.     45M for /usr (add 20M for sys-src, add 35M extra for X) (or more)
  116.  
  117. Full Install:
  118. ~~~~~~~~~~~~~
  119.  
  120. If you have a system that meets the above requirements, and you want to check  
  121. out NetBSD-Amiga, you will need to create some partitions on your  
  122. harddrive(s) for it.  Use the example below as a loose guide.  The main thing  
  123. is that you want to create a ROOT, SWAP, and USR partition of at _least_ the  
  124. recommended sizes.  You will have to take special note to watch the SCSI  
  125. UNIT, as it has relevence on the /dev/sdX number.
  126.  
  127. IMPORTANT:  READ AND UNDERSTAND THIS, OR YOU WILL BE SORRY LATER
  128. ~~~~~~~~~~
  129. Say your system has 3 SCSI devices (note: IDE drives will show up as SCSI  
  130. devices under NetBSD), IDs 0, 3, and 4.  These will now show up as
  131. sd0 (ID 0), sd1 (ID 3) and sd2 (ID 4).  The higher the ID of the device is,  
  132. the higher sd will increment.  Write the IDs to sd# down!  If you NetBSD  
  133. partitions are on the SCSI drive at ID3, then your NetBSD system will be on  
  134. /dev/sd1 - replace any references to /dev/sd0x with /dev/sd1x in the  
  135. examples! 
  136.  
  137.  
  138.  
  139. An Example of a clean installation on an A4000.
  140.  
  141. A4000/IDE Installation
  142. ~~~~~~~~~~~~~~~~~~~~~~
  143. (or How Bill got NetBSD running on a an A4000/single IDE installation)
  144.  
  145. You will need your 3.0 (or above) Commodore Installation diskettes.
  146. Backup anything important on your IDE drive, as it will be deleted.
  147. You will have 30M available on your IDE to hold the installation files, and  
  148. your Workbench.
  149.  
  150. Partition your harddrive with HDtoolbox:  Select the IDE drive, and click on  
  151. Partition drive.
  152.  
  153. *WARNING* This is a permanent thing, so please make sure that if you have
  154. anything important, that you have backed it up on floppies or tape.
  155.  
  156. Delete all your existing partitions (usually called Workbench and Work) on  
  157. your IDE harddrive, by selecting a partition, and clicking on Delete  
  158. Partition.
  159.  
  160. You will create 4 partitions.
  161.  
  162. 1st partition: 
  163.  
  164.     Click New Partition. Click in the next free area.
  165.     size = 30M AMIGADOS
  166.     Partition Device Name = BSDBOOT  BSDNAME = /dev/sd0d
  167.     Adv. Options, Click on Change...
  168.     Click File System: until you see Fast File System
  169.     Turn ON Automount this partition, if it is not checked.
  170.     Make sure custom boot code is turned off.
  171.     Leave File system block size at 512 (if you have this option *)
  172.     Click OK.
  173.  
  174. * If you don't, you will not be able to mount the partition under NetBSD.
  175.  
  176. 2nd partition:
  177.     Click New Partition.  Click in the next free area.
  178.     size = 15M
  179.     Partition Device Name = BSDROOT  BSDNAME = /dev/sd0a
  180.     Adv. Options, Click on Change...
  181.     Click File System: until you see Custom File System
  182.     Turn off Automount this partition, if it is checked.
  183.     Identifier: 0x4e425207
  184.     Reserved Blocks, beginning: 0 (same for end)
  185.     Make sure custom boot code is turned off.
  186.     Leave File system block size at 512 (if you have this option)
  187.     Click OK.
  188.  
  189. 3rd partition:
  190.     Click New Partition.  Click in the next free area.
  191.     size = (the size of your contigious FAST RAM) * 2
  192.     Partition Device Name = BSDSWAP  BSDNAME = /dev/sd0b
  193.     Adv. Options, Click on Change...
  194.     Click File System: until you see Custom File System
  195.     Turn off Automount this partition, if it is checked.
  196.     Identifier: 0x4e425301
  197.     Reserved Blocks, beginning: 0 (same for end)
  198.     Make sure custom boot code is turned off.
  199.     Leave File system block size at 512 (if you have this option)
  200.     Click OK.
  201.  
  202. 4th partition:
  203.     Click New Partition. Click in the next free area.
  204.     size = remaining free space on the IDE. (46 or more Megabytes)
  205.     Partition Device Name = BSDUSER  BSDNAME = /dev/sd0e
  206.     Adv. Options, Click on Change...
  207.     Click File System: until you see Custom File System
  208.     Turn off Automount this partition, if it is checked.
  209.     Identifier: 0x4e425507
  210.     Reserved Blocks, beginning: 0 (same for end)
  211.     Make sure custom boot code is turned off.
  212.     Leave File system block size at 512 (if you have this option)
  213.     Click OK.
  214.  
  215. Double check everything to make sure it's correct, then click on Save Changes  
  216. to Drive.  When you click Exit, your machine will not reboot.  You will want  
  217. to place the Install disk of the Commodore 3.0 (or above) Operating System,  
  218. into your floppy, and install onto the BSDBOOT partition.  You may need to  
  219. boot off of the Workbench disk and Format the BSDBOOT partition, before  
  220. Installing.
  221.  
  222.  
  223. ONCE YOU HAVE YOUR PARTITIONS SET UP
  224. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  225. Now, you need to get the required files on to the root directory of the  
  226. AmigaDOS partition.  Use a terminal program, tape drive, or copy them from  
  227. another drive.  Now you are ready to enter a new world.
  228.  
  229. BOOTING INTO NETBSD
  230. ~~~~~~~~~~~~~~~~~~~
  231. AmigaShell> loadbsd -b netbsd
  232.  
  233. It should boot up and ask you which device you wish to boot off of.
  234. Make sure the bootfloppy disk is in the drive, and enter:
  235.  
  236. fd0
  237.  
  238. and press return.  This will cause the NetBSD kernel to boot off of the boot  
  239. floppy in DF0:.
  240.  
  241. newfs /dev/sd0a            (erase it, set it up for NetBSD)
  242. --
  243. "newfs: ioctl(WDINFO): Invalid argument."
  244. This warning is ok, just ignore it.
  245.  
  246.   The Amiga doesn't write disk labels (and returns an error to indicate
  247. that the attempt to write the label did not suceed).  Any changes to
  248. the disk "label" still have to be done through and RDB editor.
  249.  
  250. --
  251. newfs /dev/sd0e            (erase it, set it up for NetBSD)
  252. mount /dev/sd0a /altroot    (mount root)
  253. mkdir /altroot/usr        (make usr dir)
  254. mount /dev/sd0e /altroot/usr    (mount usr on sd0e or whatever)
  255. mount_ados /dev/sd0d /mnt    (mount ados partition)
  256. cd /altroot            (cd to newroot)
  257. tar -zxvf /mnt/netbsd.gz    (extract kernel)
  258. tar --unlink -zxvpf /mnt/base.tar.gz    (extract base)
  259. tar --unlink -zxvpf /mnt/etc.tar.gz    (extract the rest of etc)
  260. ==== Optional
  261. |tar --unlink -zxvpf /mnt/comp.tar.gz    (extract gcc and tools)
  262. |tar --unlink -zxvpf /mnt/games.tar.gz    (extract games and fun stuff)
  263. |tar --unlink -zxvpf /mnt/man.tar.gz    (extract man pages)
  264. |tar --unlink -zxvpf /mnt/misc.tar.gz    (extract miscellaneous stuff)
  265. |tar --unlink -zxvpf /mnt/ext.tar.gz    (extract text tools and docs)
  266. =====
  267. cd /altroot/dev                (cd dev)
  268. tar -cf - /dev | tar -xvpf -        (copy device files from floppy)
  269. /altroot/sbin/umount /altroot/usr    (unmount usr)
  270. /altroot/sbin/mount -u -r /altroot    (make new root read only)
  271. /altroot/bin/sync        (sync whatever for safety)
  272. /altroot/sbin/reboot        (reboot system)
  273.  
  274. You'll end up in single-user mode, at which you can:
  275.  
  276. mount /dev/sd0a /
  277. mount /dev/sd0e /usr
  278. cd /etc
  279. vi fstab    (I hope you know how to use vi).
  280.  
  281. You will want to edit the fstab file to correctly represent your / and /usr  
  282. devices, as well as uncomment and edit the swap.  Once you save this, you  
  283. should then be able to enter multiuser mode.
  284.  
  285. login: root
  286. (no password)
  287.  
  288. You're in (hopefully).  If all is well, then you should examine the other  
  289. NetBSD-Amiga FAQs to set your system up.
  290.  
  291.  
  292. UPGRADING YOUR EXISTING NETBSD-0.9c SYSTEM
  293. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  294. Get the NetBSD tar.gz files onto a spare area on your system {place}.  This  
  295. also includes a tape drive, if you are going to use one.  NO MORE ROOTFS.GZ.   
  296. That's right. It's history.  Just make sure that you have enough space
  297.  
  298. Do NOT unarchive etc.tar.gz, unless you are prepared for system specific  
  299. files to be nailed in /etc (group, passwd, etc).
  300.  
  301. As root:
  302. cd /
  303. tar -zxf {place}netbsd.gz    (extract kernel)
  304. tar --unlink -xvzpf {place}base.tar.gz    (extract base)
  305. tar --unlink -zxvpf {place}comp.tar.gz    (extract gcc and tools)
  306. tar --unlink -zxvpf {place}games.tar.gz    (extract games and fun stuff)
  307. tar --unlink -zxvpf {place}man.tar.gz    (extract man pages)
  308. tar --unlink -zxvpf {place}misc.tar.gz    (extract miscellaneous stuff)
  309. tar --unlink -zxvpf {place}ext.tar.gz    (extract text tools and docs)
  310.  
  311. You will have to edit your fstab to denote the ID changes (if applicable).
  312. Use disklabel to make sure things are where you think they are.
  313.  
  314.  
  315. REPORTING PROBLEMS
  316. ~~~~~~~~~~~~~~~~~~
  317. Basically the kernel diags (things like boot messages and register
  318. dumps after panics) are stored in the last page of memory.  These
  319. messages survive reboot so that if you have to get at them you can.
  320. The utility of choice is dmesg.  Which prints this memory out.  Thus
  321. if you get a panic with a register dump, instead of copying it down
  322. by hand you can simply reboot and then redirect dmesg to a file.
  323.  
  324. Chris.
  325.  
  326. [send this edited information to the mailing list for help]
  327.  
  328. SOME HELPFUL HINTS THROWN IN.  MOST HAVE BEEN CUT FROM THE MAILING LIST
  329. =======================================================================
  330. (names have been lost, but thanks to those who gave the answers to us)
  331.  
  332. A few NetBSD-Amiga WWW servers do exist. The Main one is done by Matthias 
  333.  
  334. Kirschnick and includes links to other NetBSD information sites.
  335.  
  336. Matthias Kirschnick's <A  
  337. HREF="http://www.informatik.uni-erlangen.de/tree/Departments/IMMD-IV/Persons/k 
  338. irschni/NetBSD-Amiga/index.html">NetBSD-Amiga-page</A>
  339.  
  340.  
  341. > Is there a NetBSD/Amiga Web server out there?  If not, then I may be
  342.  
  343. Try http://dusk.rz.uni-regensburg.de/. This is a A2000 running NetBSD,
  344. and there's also a section on NetBSD on this machine.
  345.  
  346. ======================================================================
  347. > Right - as distributed, /etc/ttys runs getty on the ite0 Amiga display,
  348. > rather than "console" which would go to the configured console device.
  349.  
  350. Yes and this is correct. You should enable getty's on whichever devices
  351. you want them on.  The console /dev/console should always be marked as
  352. *off* however.
  353.  
  354. ======================================================================
  355.  
  356. >I see when I boot the kernel:
  357. >warning found rdb->secpercyl(1098) != rdb->nsectors(74) * rdb->nheads(15)
  358. >warning lp->d_sparespercyl(12) not multiple of lp->d_ntracks(15)
  359.  
  360. This is fine, this is telling you that your RDB has some conflicting values.   
  361. If the partitions mount under NetBSD, then it's safe to ignore them.  If they  
  362. don't, then use dmesg to copy the values down and give us a yell on the  
  363. mailing list.
  364.  
  365. ======================================================================
  366.  
  367. > TIMEZONE = 800, DST = 1  is what I  
  368.  
  369. > thought it should be for me (Portland, OR, +8 GMT), but it tells me that  
  370. the  
  371.  
  372. > time under netbsd is 7 hours slower than what the Amiga side says... what  
  373. am  
  374.  
  375. > I missing?
  376.  
  377.   The TIMEZONE and DST config options set something in the kernel data
  378. (at least I think the TIMEZONE does, but I'm not sure about DST - I
  379. think when I went looking, it was never referenced anywhere).  The kernel
  380. doesn't do anything at all with that data.
  381.  
  382.   I think there's a something that needs to be set up in /usr/share somewhere
  383. that deals with the timezones.  I've never done it, so my NetBSD time is the
  384. same as AmigDOS - but NetBSD considers that time value GMT, which can cause
  385. confusion at times.  Also, I don't think the stuff in /usr/share is used
  386. until you go to multi-user, so the time would probably be reported  
  387. differently
  388. in single user vs multi user mode.
  389.  
  390.   The clock read routine just gets the current time from the Amiga clock and
  391. uses that time as-is, with no adjustments.  I had thought about adjusting
  392. it based on the TIMEZONE, but never got around to trying it.  Trying to
  393. handle DST in the kernel isn't as easy to do.
  394.  
  395. ======================================================================
  396.  
  397. From: spcmilo@hydra.spc.uchicago.edu (David Champion)
  398.  
  399. Not knowing of any such utility already existing, I came up with this
  400. braindead rexx program to reset system time under ADOS to local so
  401. that I can keep the battmem time in GMT for BSD's sake.  (Well, I like
  402. keeping GMT.)  I call it from s:User-Startup, right after loading
  403. rexxmast:
  404.     sys:rexxc/rx rexx:warpdate.rexx
  405.  
  406. Obviously, there's much room for improvement, but it does the job well
  407. enough.  Even without  going into detail, it should probably take the
  408. GMT offset on the command line, and my offset should probably be
  409. negative, not positive.  Oh well.
  410.  
  411. Anyway, thought someone might want it.
  412.  
  413. /* warpdate.rexx */
  414. /* adjust current time so battclock can keep GMT */
  415.  
  416. /* CONFIGURE HERE */
  417. /* number of minutes short of GMT */
  418. off = 300
  419.  
  420. /* STOP CONFIGURING */
  421.  
  422. /* do not change day by default */
  423. changeday = ''
  424.  
  425. /* find minutes after midnight */
  426. mins = time('m')
  427.  
  428. /* adjust minutes */
  429. mins = mins - off
  430.  
  431. /* if we go back a day, adjust minutes and changeday flag */
  432. if mins < 0
  433. then do
  434.         mins = 1440 + mins
  435.         changeday = 'yesterday'
  436. end
  437.  
  438. /* if we go ahead a day, adjust minutes and changeday flag */
  439. if mins > 1439
  440. then do
  441.         mins = 1440 - mins
  442.         changeday = 'tomorrow'
  443. end
  444.  
  445. /* extract new hour from minutes; set minutes to minutes since hour */
  446. hour = trunc(mins / 60)
  447. mins = mins - (hour * 60)
  448.  
  449. /* update seconds */
  450. tmp = time('m')
  451. secs = time('s')
  452. secs = secs - (tmp * 60)
  453.  
  454. /* create an amigados 'date' command */
  455. datestr = 'date 'changeday' 'hour':'mins':'secs
  456.  
  457. /* and change the clock */
  458. address command datestr
  459.  
  460. ======================================================================
  461. [stolen from one of Gunther's FAQ]
  462.  
  463.                             Hall of Fame [outdated]
  464.                          ---============---
  465.  
  466.  
  467. Alan Bair, abair@amcu-tx.sps.mot.com, Fontdumper, Rootfs.
  468.  
  469. Stefan G. Berg, sgberg@charon.bloomington.in.us, Writing documentation.
  470.  
  471. Dave Blaszyk, dvb@ssd.kodak.com, a driver for IVS Vector
  472.  
  473. Philippe Brand, PhB@telesys-innov.fr, X-server for custom chips,
  474. X-server for Retina.
  475.  
  476. David Crooke, dcc@dcs.ed.ac.uk, Writing an installation-document.
  477.  
  478. William J. Coldwell, billc@icecube.cryogenic.com, Maintaining the
  479. Mailing-List in the old days, Various programming.
  480.  
  481. Guenther Grau, s_grau@ira.uka.de, Extensively writing documents.
  482.  
  483. Niklas Hallqvist, niklas@appli.se, Porting the Mach VM system, that
  484. NetBSD-Amiga  uses, Driver for GVP, Porting ADos-FS to NetBSD-Amiga.
  485.  
  486. Rob Healey, rhealey@aggregate.com, a L0T of bug-fixes.
  487.  
  488. Andy Heffernan, ahh@netcom.com, Porting GDB, compiling X11R5.
  489.  
  490. Michael L. Hitch, osymh@montana.edu, Support for the 68040, Drivers
  491. for various SCSI-devices, changing loadbsd, fixing bugs, 5380-Driver,
  492. AGA-modes for the console and X, A4000 IDE driver, a L0T of bug-fixes,
  493. Implementing a floppy-driver, IVS-Vector-driver etc.
  494.                                                                     
  495.  
  496. Chris Hopps, chopps@emunix.emich.edu, Support for the custom chips,
  497. Reintegrating the changes back to the NetBSD-current source tree,
  498. fixing bugs and (re-)designing some of the code. Main coordinator
  499. of the source. ADos-Filesystem.
  500.  
  501. Eduardo E. Horvath, eeh@btr.com, X11R5-Mono-Server.
  502. Markus Illenseer, markus@TechFak.Uni-Bielefeld.de, Writing
  503. documentation, Porting X-clients.
  504.  
  505. 0liver Lahaye, lahaye_o@epita.fr, X-server for custom chips,
  506. X-server for Retina.
  507.  
  508. Brad Pepers, pepersb@cuug.ab.ca, Implementing a floppy-driver.
  509.  
  510. 0liver Raoul, raoul_o@epita.fr, X-server for custom chips,
  511. X-server for Retina.
  512.  
  513. Stephen J. Roznowski, sjr@zombie.ncsc.mil, Building binaries
  514. from sun-lamp sources.
  515.  
  516. Ty Sarna, tsarna@endicor.com, Various programming, Installation.
  517.  
  518. Roy Trevino, rtrevino@sedona.intel.com, X11R5-Mono-Server.
  519.  
  520. Lutz Vieweg, lkv@mania.RoBIN.de, providing information and writing
  521. a tty-device-driver for the Retina Z3
  522.  
  523. Markus Wild, mw@eunet.ch, Initially started the port of NetBSD-current
  524. to the Amiga, still working on various projects.
  525.  
  526.  
  527. [Others include Ken Dyke for 040 MMU code, and probably a couple of others  
  528. who didn't send me e-mail in time for this document.  Also, we give thanks to  
  529. the NetBSD core team members, for which there wouldn't be a port at all.]
  530.  
  531. -- EOF --
  532.  
  533.  
  534.  
  535. --
  536.  William J. Coldwell - billc@iceCuBE.cryogenic.com - Cryogenic Software